let path = require('path')

module.exports = {
    mode:'production',
    entry: './index.tsx',
    output  :{
        path: path.resolve(__dirname, 'dist'),
        filename: 'main.js'
    },
    module: {
        rules: [
            { test: /\.tsx?$/, use: 'ts-loader' },
            { test: /\.s(a|c)ss?$/, use: [
                'style-loader',
                'css-loader',
                'sass-loader'] }
        ]
      }
}